/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.plant.service;

import java.util.List;
import java.util.Map;

import com.plant.entity.PgcHottestFaq;
import com.plant.entity.PgcMonthList;
import com.plant.entity.PgcWeekList;
import com.plant.entity.UgcFriends;
import com.plant.entity.UgcUser;

/**
 *1.下面是模糊搜索的接口  搜索好友
 * 
 * 
 */
public interface FuzzySearchService {
        
       public List<Map<String, Object>> FuzzySearchFriend(UgcUser u);  //-----通过用户MYID搜索好友
       
       public List<Map<String, Object>> FuzzySearchFriendByTel(UgcUser u);  //-----通过用户手机号搜索好友
        
       public boolean Isfriend(UgcFriends u);//----判断是否是好友
       
       public List<Object[]> FuzzySearchPlants(String parm);  //---通过模糊参数搜索植物
       
       public List<Map<String, Object>> FuzzySeachArticle(Integer page,String parm);//--模糊搜索文章3条
       
       public List<Map<String, Object>> MoreFuzzySeachArticle(String time,Integer page,String parm);//--模糊搜索文章10条
       
       public List<Map<String, Object>> FuzzySeachActivity(Integer page,String parm);//--模糊搜索活动3条
       
       public List<Map<String, Object>> MoreFuzzySeachActivity(String time,Integer page,String parm);//--模糊搜索活动10条

       public List<Map<String, Object>> FuzzySeachTopic(String parm);//--模糊搜索话题
      
       public List<Map<String, Object>> FuzzySeachFaq(String parm);//--模糊搜索求助
       
       public List<Map<String, Object>> FuzzySeachFaqPaging(String parm,Integer page);//--模糊搜索求助问答分页
       
       public List<Object> faqImage(Object obj); //--求助的图片
       
       public List<Map<String, Object>> FuzzySearchFaqAnswer(String parm); //模糊搜索答案
       
       public List<Object> OneFaqAnswer(Object obj);//---查看一个回答
       
       public Long CountAllFaqAnswerCount(Object obj); //统计点赞所有回答的点赞
       
       public List<Object> AllAnswerIds(Object obj);//查询某条求助的所有回答id
       
       public List<Map<String, Object>> ListAllFaq();//取出所有的求助
       
       public List<Map<String, Object>> ListAllFaqId();//取出所有的求助
       
       public boolean AddhotFaq(PgcHottestFaq hotfaq);//添加最热问答
       
       public List<Map<String, Object>> HotFaq(Integer page,PgcHottestFaq hotfaq);//最热问题
       
       public List<Map<String, Object>> HelpedPeople(String firstday,String lastday);
       
       public Integer HelpedCount(UgcUser u); //帮助过的人统计
       
       public Long OneUserAnswerBylikeCount(UgcUser u);//统计某个用户回答被点赞的个数
       
       public boolean AddHotWeekList(PgcWeekList pw);//添加最热周排行用户
       
       public boolean AddHotMonthList(PgcMonthList pm);//添加最热周排行用户
       
       public List<Map<String, Object>> HotWeekPeople();//周排行
       
       public List<Map<String, Object>> HotMonthPeople();//月排行
       
       public List<Map<String, Object>> ActivePeople();//活跃达人
}
